from modelscope.hub.snapshot_download import snapshot_download


def down_model(model_id: str, cache_dir: str):
    model_dir = snapshot_download(model_id=model_id, cache_dir=cache_dir)


if __name__ == '__main__':
    # down_model('qwen/Qwen-7B-Chat', './models')
    down_model('qwen/Qwen1.5-0.5B-Chat', './models')
